package com.hzcx.app.simplechat.ui.login.contract;

import android.content.Context;

import com.hzcx.app.simplechat.base.IPresenter;
import com.hzcx.app.simplechat.base.IView;
import com.hzcx.app.simplechat.ui.login.bean.DomainNameBean;
import com.hzcx.app.simplechat.ui.login.bean.LoginInfoBean;
import com.hzcx.app.simplechat.ui.publicui.bean.ProtocolBean;

public interface LoginContract {

    interface View extends IView {
        void loginSuccess(LoginInfoBean data,int tag);
        void bindSuccess();
        void protocolResult(ProtocolBean data);
        void userIsRegister(int isRegsiter);
        void domainNameResult(DomainNameBean data);
    }

    interface Presenter extends IPresenter<View> {
        void loginByAli(Context context, String accessToken, String logindevice);
        void loginByWx(Context context,String code,String logindevice);
        void bindPhoneByAli(Context context,String token,String accessToken);
        void getProtocol(Context context, String type);
        void getUserIsRegister(Context context,String mobile,String area_code,String uniquely);
        void getDomainNameConfig(Context context);
    }

}
